]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Make page previews fill allocation
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 14 Jun 2022 19:58:19 +0000 (16:58 -0300)
committerMarge Bot <marge-bot@gnome.org>
Wed, 10 Aug 2022 15:16:36 +0000 (15:16 +0000)
Instead of hardcoding the width of the page previous, allow them
to fill the allocated space.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2335>

data/theme/gnome-shell-sass/widgets/_app-grid.scss
js/ui/appDisplay.js

index 91cf023f1989c71fa5475a52bb5c9161704281ae..0fcf62edd3a500cc53f232c7e9211abf5b80f5b2 100644 (file)
@@ -125,8 +125,6 @@ $app_icon_size: 96px;
 }
 
 .page-navigation-hint {
-  width: 300px;
-
   &.dnd {
     background: rgba(255, 255, 255, 0.1);
   }
index f3134d94a0d59c3aec43ac41f73065cd9ce01734..cb90ffa61ce98ea34ee64bbf69d2091865fcaa8f 100644 (file)
@@ -461,7 +461,7 @@ var BaseAppView = GObject.registerClass({
             reactive: false,
             x_expand: true,
             y_expand: true,
-            x_align: Clutter.ActorAlign.END,
+            x_align: Clutter.ActorAlign.FILL,
             y_align: Clutter.ActorAlign.FILL,
         });
 
@@ -472,7 +472,7 @@ var BaseAppView = GObject.registerClass({
             reactive: false,
             x_expand: true,
             y_expand: true,
-            x_align: Clutter.ActorAlign.START,
+            x_align: Clutter.ActorAlign.FILL,
             y_align: Clutter.ActorAlign.FILL,
         });